@echo off
set "START_IN=%~dp0"
set "TARGET_PATH=%~dp0run.exe"
set "SHORTCUT_PATH=%USERPROFILE%\Desktop\AutoBill.lnk"
set "ARGUMENTS=--headless=Y"
powershell -command "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut('%SHORTCUT_PATH%'); $s.TargetPath = '%TARGET_PATH%'; $s.WorkingDirectory = '%START_IN%'; $s.Arguments = '%ARGUMENTS%'; $s.Save()"

set "START_IN=%~dp0"
set "TARGET_PATH=%~dp0run.exe"
set "SHORTCUT_PATH=%USERPROFILE%\Desktop\AutoBill-Gui.lnk"
set "ARGUMENTS=--headless=N"
powershell -command "$ws = New-Object -ComObject WScript.Shell; $s = $ws.CreateShortcut('%SHORTCUT_PATH%'); $s.TargetPath = '%TARGET_PATH%'; $s.WorkingDirectory = '%START_IN%'; $s.Arguments = '%ARGUMENTS%'; $s.Save()"

